import { createSSRApp } from "vue";
import "@/assets/style.css";
import Button from "@/components/button/button.vue";
import NavBar from "@/components/navBar/navBar.vue";
import LoadMore from "@/components/LoadMore/LoadMore.vue";
import Tabs from "@/components/tabs/tabs.vue";
import ImageUpload from "@/components/imageUpload/imageUpload.vue";
import Empty from "@/components/empty/empty.vue";
import App from "./App.vue";
import { navTo } from "@/utils/util";
export function createApp() {
  const app = createSSRApp(App);
  app.component("Button", Button);
  app.component("NavBar", NavBar);
  app.component("LoadMore", LoadMore);
  app.component("Tabs", Tabs);
  app.component("ImageUpload", ImageUpload);
  app.component("Empty", Empty);
  app.config.globalProperties.$goUrl = navTo;
  return {
    app,
  };
}
